package com.ruoyi.web.controller.api.controller;


import com.alibaba.fastjson.JSONObject;
import com.ruoyi.lucky.domain.TUser;
import com.ruoyi.lucky.service.ITUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.*;


/**
 * 接口
 * @author liuhongbin
 */
@Api("接口")
@RestController
@RequestMapping("/wxcp/api/dev")
public class WxDevController {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());
	@Autowired
	private ITUserService itUserService;

	/**
	 * 返回用户
	 * **/
	@ApiOperation("获取用户测试")
	@GetMapping("/demo")
	public JSONObject  getUser() {
		JSONObject data=new JSONObject();
		List<TUser> tUserList=itUserService.selectTUserList(new TUser());
		data.put("data",tUserList);
		return data;
	}


}
